package com.example.idea.exception;

import lombok.Data;

/**
 * 功能
 * 作者：妙笔生花
 * 日期：2024/9/6 15:15
 */

@Data
public class ServiceException extends RuntimeException{

    private final Integer code;

    public ServiceException(String msg) {
        super(msg);
        this.code = 500;
    }
    public ServiceException(Integer code,String msg) {
        super(msg);
        this.code = code;
    }

}
